Drawing.getContrastingColor Method
Tests the background color ignoring transparency against readability with either a light or dark foreground (assuming white or black).
This method is static.
Parameters
- background
-
Type: Color
- light
-
Type: Object
- dark
-
Type: Object
Return Value
Type: Object
The value of either light or dark.